package com.lantosec.hmrp.modules.internal.vo;

import com.lantosec.hmrp.modules.internal.entity.InternalItem;
import com.lantosec.hmrp.core.mvc.BaseVO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 项目定义 VO对象
 * </p>
 *
 * @author AutoCode
 * @since 2020-04-22
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value="InternalItem对象", description="项目定义")
public class InternalItemVO extends BaseVO<InternalItem> {
    private static final long serialVersionUID = 1L;


    public InternalItemVO(InternalItem entity){
        this.internalItemId = entity.getInternalItemId();
        this.internalItemName = entity.getInternalItemName();
        this.internalItemType = entity.getInternalItemType();
        this.internalTypeId = entity.getInternalTypeId();
        this.itemOrder = entity.getItemOrder();
    }

    @Override
    public InternalItem convertToEntity(){
        return new InternalItem(this);
    }


    @ApiModelProperty(value = "项目ID")
    private String internalItemId;

    @ApiModelProperty(value = "项目名称/内容")
    private String internalItemName;

    @ApiModelProperty(value = "项目类型(1科间互评 2科内互评 3评上级领导 4评院领导)")
    private Integer internalItemType;

    @ApiModelProperty(value = "项目分类")
    private Integer internalTypeId;

    @ApiModelProperty(value = "排序")
    private Integer itemOrder;

    @ApiModelProperty(value = "项目分类名称")
    private String internalTypeName;
}
